package com.pro.service.imple;
//字典数据 业务层
import com.pro.mapper.SyDictDataMapper;
import com.pro.pojo.SyDictData;
import com.pro.pojo.SyDictType;
import com.pro.service.SyDictDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class SyDictDataServiceImple implements SyDictDataService{
    @Autowired
    private SyDictDataMapper syDictDataMapper;

    //根据字典类型查询字典数据
    @Override
    public List<SyDictData> getSyDictDatasBySyDictType(String dictType,Integer dictLabel) {
        return syDictDataMapper.getSyDictDatasBySyDictType(dictType,dictLabel);
    }

    @Override
    public List<SyDictData> getExamineJournal() {
        return syDictDataMapper.getExamineJournal();
    }

    @Override
    public List<SyDictData> getExamineJournalByCondition(String createBy,String cssClass,String dictValue, String createTime) {
        return syDictDataMapper.getExamineJournalByCondition(createBy,cssClass,dictValue,createTime);
    }

    @Override
    public boolean deleteExamineJournalByCode(int dictCode) {
        return syDictDataMapper.deleteExamineJournalByCode(dictCode);
    }

    @Override
    public boolean addProductJournal(SyDictData syDictData) {
        return syDictDataMapper.addProductJournal(syDictData);
    }

    @Override
    public boolean addProductPrice(SyDictData syDictData) {
        return syDictDataMapper.addProductPrice(syDictData);
    }

    @Override
    public List<SyDictData> getProductPrice(String dictLabel, String dictValue, String createTime) {
        return syDictDataMapper.getProductPrice(dictLabel,dictValue,createTime);
    }

}
